package com.hjx.entity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * (SysMenu)实体类
 *
 * @author makejava
 * @since 2020-06-09 08:07:17
 */
public class SysMenu implements Serializable {
    private static final long serialVersionUID = 698297677935533668L;
    /**
    * 权限编号
    */
    private String mid;
    /**
    * 权限名称
    */
    private String menuName;
    /**
    * 实际权限
    */
    private String url;
    /**
     * 父菜单ID
     */
    private String parentId;
    /**
     * 显示顺序
     */
    private Integer sort;
    /**
     * 类型 M目录 C菜单 F按钮
     */
    private String menuType;

    private Integer isLeaf;
    private List<SysMenu> children = new ArrayList<>();


    public String getMid() {
        return mid;
    }

    public void setMid(String mid) {
        this.mid = mid;
    }

    public String getMenuName() {
        return menuName;
    }

    public void setMenuName(String menuName) {
        this.menuName = menuName;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getParentId() {
        return parentId;
    }

    public SysMenu setParentId(String parentId) {
        this.parentId = parentId;
        return this;
    }

    public Integer getSort() {
        return sort;
    }

    public SysMenu setSort(Integer sort) {
        this.sort = sort;
        return this;
    }

    public String getMenuType() {
        return menuType;
    }

    public SysMenu setMenuType(String menuType) {
        this.menuType = menuType;
        return this;
    }

    public List<SysMenu> getChildren() {
        return children;
    }

    public SysMenu setChildren(List<SysMenu> children) {
        this.children = children;
        return this;
    }

    public Integer getIsLeaf() {
        return isLeaf;
    }

    public SysMenu setIsLeaf(Integer isLeaf) {
        this.isLeaf = isLeaf;
        return this;
    }
}
